import java.util.Scanner;

public class test3 {
    //洛谷  U479319 [CS-M3] 博弈游戏
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int sum = 0;
        int[][] arr = new int[3][3];

        for (int k = 0;k<3;k++) {
            for(int i = 0 ;i< 3;i++){
                for(int j = 0;j<3;j++){
                    arr[i][j] = scan.nextInt();
                }
            }

            int x = scan.nextInt();
            int y = scan.nextInt();
            sum+=arr[x-1][y-1];
        }
        System.out.println(sum);
        if(sum<50){
            System.out.println("Cirbaf");
        }else{
            System.out.println("Resselhtur ");
        }
    }
}
